package com.gdwhomework.chapter07.homework004;

public class Person {
    private String name;
    private int age;
    private char gender;
    private double sal;

    public Person(String name, int age, char gender, double sal) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.sal = sal;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public double getSal() {
        return sal;
    }

    public void setSal(double sal) {
        this.sal = sal;
    }
    public void showAllYearSal(){
        System.out.println(getSal()*12);
    }
}
